from django.db import models
from utils.base_models import BaseModel


class ParameterModels(BaseModel):
    name = models.CharField(verbose_name='name', max_length=32, unique=True)
    key = models.TextField(verbose_name='key', null=True, blank=True)
    value = models.TextField(verbose_name='key', null=True, blank=True)

    class Meta:
        db_table = 'system_perameter'
        verbose_name = '参数配置'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
